home *** CD-ROM | disk | FTP | other *** search
- /* Style.edge
- ** $VER: Style.edge 1.1 (27.12.96)
- ** Original script by Troels Walsted Hansen
- ** Purpose: Apply style to word.
- **
- */
-
- options results
- parse arg stylechar
-
- /* needs Edge functions */
-
- p = address() || ' ' || show('P',,)
- portname = pos('EDGE',p)
-
- if portname > 0 then portname = word(substr(p,portname),1)
- else
- do
- say 'No Edge port found!'
- exit 10
- end
-
- address(portname)
-
- RequestString TITLE '"0-Bold 1-Italic 2-Reverse 3-Underline"'
-
- select
- when(result = 0) then stylechar = '*'
- when(result = 1) then stylechar = '/'
- when(result = 2) then stylechar = '#'
- when(result = 3) then stylechar = '_'
- otherwise exit
- end
-
- Previous WORD
- 'TEXT' stylechar
- 'Position' EOW
- 'Cursor' RIGHT 1
- TEXT stylechar
-